package com.qf.spring003.service.impl;

import com.qf.spring003.service.FangDong;
import com.qf.spring003.service.FangKe;

public class FangKeImpl implements FangKe {
    // 依赖FangDong接口实现租房的具体逻辑
    FangDong fangDong;

    public FangDong getFangDong() {
        return fangDong;
    }

    public void setFangDong(FangDong fangDong) {
        this.fangDong = fangDong;
    }

    @Override
    public void rentHouse() {
        fangDong.zufang();
    }

}
